<?xml version='1.0'?>

<gl_extension name="WGL_ARB_buffer_region" reg_no="4">
	<tokens>
		<token name="WGL_FRONT_COLOR_BUFFER_BIT_ARB" value="0x00000001"/>
		<token name="WGL_BACK_COLOR_BUFFER_BIT_ARB" value="0x00000002"/>
		<token name="WGL_DEPTH_BUFFER_BIT_ARB" value="0x00000004"/>
		<token name="WGL_STENCIL_BUFFER_BIT_ARB" value="0x00000008"/>
	</tokens>

	<functions>
		<function name="wglCreateBufferRegionARB" return="HANDLE">
			<params>
				<param type="HDC" name="hDC"/>
				<param type="int" name="iLayerPlane"/>
				<param type="UINT" name="uType"/>
			</params>
		</function>
		<function name="wglDeleteBufferRegionARB" return="VOID">
			<params>
				<param type="HANDLE" name="hRegion"/>
			</params>
		</function>
		<function name="wglSaveBufferRegionARB" return="BOOL">
			<params>
				<param type="HANDLE" name="hRegion"/>
				<param type="int" name="x"/>
				<param type="int" name="y"/>
				<param type="int" name="width"/>
				<param type="int" name="height"/>
			</params>
		</function>
		<function name="wglRestoreBufferRegionARB" return="BOOL">
			<params>
				<param type="HANDLE" name="hRegion"/>
				<param type="int" name="x"/>
				<param type="int" name="y"/>
				<param type="int" name="width"/>
				<param type="int" name="height"/>
				<param type="int" name="xSrc"/>
				<param type="int" name="ySrc"/>
			</params>
		</function>
	</functions>
</gl_extension>
